local M = {}

local server
local client

function M.send_to_server(fd, data)
    if not server then
        server = require "server"
    end

    server.handle_proto(fd, data)
end

function M.send_to_client(fd, data)
    if not client then
        client = require "client"
    end

    client.handle_proto(fd, data)
end

local fd = 0
function M.connect_server()
    fd = fd + 1
    return fd
end

return M